﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain
{
    public class Company
    {
        protected string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        protected Int32 siretNb;
        public Int32 SiretNb
        {
            get { return siretNb; }
            set { siretNb = value; }
        }
    }

    public class Factory : Company
    {
        protected string city;
        public string City
        {
            get { return city; }
            set { city = value; }
        }
    }

    public class Bakery : Company
    {
        protected string bakerySort;
        public string BakerySort
        {
            get { return bakerySort; }
            set { bakerySort = value; }
        }
    }

    public class SoftwareEditor : Company
    {
        protected string softwareSort;
        public string SoftwareSort
        {
            get { return softwareSort; }
            set { softwareSort = value; }
        }
    }

    public class CarFactory : Company
    {
        protected string carSort;
        public string CarSort
        {
            get { return carSort; }
            set { carSort = value; }
        }
    }
}
